<?php
/**
 * Junction_Column
 * 
 * Database column.
 * 
 * @author Patrick J. Mizer <patrick.mizer@gmail.com>
 */
class Junction_Column
{
	/**
	 * Table to which the column belmngs.
	 * 
	 * @var Junction_Table
	 */
	private $_table;	
	
	/**
	 * Name of the columm.
	 * 
	 * @string
	 */
	private $_name;
	
	/**
	 * Junction_Column Constructor.
	 * 
	 * @param Junction_Database
	 * @param string name
	 */
	public function __construct($table, $name)
	{
		$this->_table = $table;
		$this->_name  = $name;
	}
	
	/**
	 * Getter for table.
	 * 
	 * @return Junction_Table
	 */
	public function getTable()
	{
		return $this->_table;
	}
	
	/**
	 * Getter for name.
	 * 
	 * @return string name
	 */
	public function getName()
	{
		return $this->_name;
	}
}
?>
